import Vue from 'vue'

import '@/static/css/index.css';

import Popup from 'vant/lib/popup';
import Button from 'vant/lib/button';
import Cell from 'vant/lib/cell';
import CellGroup from 'vant/lib/cell-group';
import Field from 'vant/lib/field';
import Checkbox from 'vant/lib/checkbox';
import CheckboxGroup from 'vant/lib/checkbox-group';
import Radio from 'vant/lib/radio';
import RadioGroup from 'vant/lib/radio-group';

// import Popover from 'vant/lib/popover';

const components = {
	[Popup.name]: Popup,
	[Button.name]: Button,
	[Cell.name]: Cell,
	[CellGroup.name]: CellGroup,
	[Field.name]: Field,
	[Checkbox.name]: Checkbox,
	[CheckboxGroup.name]: CheckboxGroup,
	[Radio.name]: Radio,
	[RadioGroup.name]: RadioGroup,
	// [Popover.name]: Popover
}

Object.keys(components).forEach((key) => {
	Vue.component(key, components[key])
})
